//
//  Configuration.h
//  basket
//
//  Created by xujing on 16/1/15.
//  Copyright © 2016年 xujing. All rights reserved.
//

#import <Foundation/Foundation.h>

enum NetWorkError {
    RESULT_OK = 1,
    RESULT_FAIL = 2,
    RESULT_IO_ERROR = 3,
    RESULT_AUTH = 4,
};

#define  CONF_CITY_FILE  (@"city.json")
#define  CONF_ADAPT_SCOPE_FILE  (@"adapt_scope.json")
#define  CONF_INSURANCE_FILE  (@"insurance_a001.json")
#define  CONF_INSURANCE_FUND_FILE  (@"insurance_c001.json")

#define  CONF_USERINFO_FILE  (@"userInfo.json")
//我的收入
#define  CONF_ProfitTotal_FILE  (@"ProfitTotalInfo.json")
//我的客户
#define  CONF_CustomerCount_FILE  (@"CustomerCount.json")

//我的版本号
#define  CONF_VersionConf_FILE  (@"VersionConf.json")

#define  CONF_ADAPT_SCOPE_FILE  (@"adapt_scope.json")

#define  CONF_ADAPT_SCOPE_FILE_HANGZHOU  (@"adapt_scopeHZ.json")
#define  CONF_BACNKINFO_FILE (@"bankInfo.json")

#define  ACCOUNT_MAX_PhoneNumber    10 //电号号码
#define  ACCOUNT_MAX_PhoneCode    5 //电号号码
#define kAlphaNum  @"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"// 数字和字母校验密码
#define kNum @"0123456789"// 数字校验验证码
#define kEmailNum  @"abcdefghijklmnopqrstuvwxyz0123456789@."//邮箱
extern Boolean isSalerLogin;
//extern ClientRankModel *loginSalerInfo;
extern NSString *token;
extern int selfRank;
extern BOOL isTokenTimeOut;//token是否过期
@interface Configuration : NSObject

+ (NSString *)getConfBaseUrl;
+ (NSString *)getImageUrl;
+ (void)storeConfFile:(NSString *)fileName :(NSString *)content ;
+ (NSMutableArray *)getNations;


@end
